/********************************************************************
* Copyright (c) 2013,TGS,All rights reserved.
* fileName:	CadRenderer.h	
* created:	2013/07/25 10:25

* version:	1.6
* detail: 
*********************************************************************/


#pragma once

#include <TGS/MapControl2.0/config.h>
#include <TGS/MapControl2.0/Renderer.h>
#include <QString>

class DxfRenderModel;

namespace TGS{
namespace MapControl{

class MAPCONTROL_EXPORT CadRenderer : public Renderer
{
public:
	CadRenderer();
	CadRenderer(const QString& filePath);
	~CadRenderer(void);
public:
	void resetFile(const QString& filePath);
	bool haveData() const;
public:
	virtual void render(RenderContext* renderContext);
	virtual Envelope getEnvelope() const;
private:
	DxfRenderModel*	_dxfRenderModel;
};

}//MapControl
}//TGS